package com.top.mall.entity

import com.chad.library.adapter.base.entity.MultiItemEntity
import com.module.lemlin.http.HttpResponseData

const val HOME_LABEL = 1 //首页标签
const val HOME_BANNER = 2 //首页轮播
const val HOME_CATEGORY = 3 //首页分类
const val HOME_CAPSULE = 4 //首页胶囊
const val HOME_JOINS = 5 //首页拼团


data class HomeLabelEntity(
    val string: String
) : MultiItemEntity {
    override val itemType: Int
        get() = HOME_LABEL
}

data class HomeIndexResponse(
    val data: HomeIndex
) : HttpResponseData()

data class HomeIndex(
    val activity: Activity,
    val banner: MutableList<Banner> = mutableListOf(),
    val cat_list: MutableList<CateList> = mutableListOf(),
    val goods_flash_sale: MutableList<Any> = mutableListOf(),
    val goods_gift: MutableList<Any> = mutableListOf(),
    val goods_group: MutableList<Any> = mutableListOf()
)

data class Activity(
    val image: String,
    val jump_type: Int,
    val params: Any,
    val title: String
)

data class Banner(
    val image: String,
    val jump_type: Int,
    val params: String,
    val title: String
)